/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.common.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.Date;

/**
 * (SysCommonAttachment)实体类
 *
 * @author shexiaoxin
 * @since 2020-04-02
 */
public class AttachmentBean implements Serializable {
    private static final long serialVersionUID = 463104163014733143L;
    
    private String id;
    
    private String attachmentName;
    
    private String extension;
    
    private String attachmentUrl;

    private String pdfUrl;

    private String businessId;
    
    private String uploaderCode;
    
    private String uploaderName;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date uploadTime;

    private MultipartFile file;

    private String attModel;

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAttachmentName() {
        return attachmentName;
    }

    public void setAttachmentName(String attachmentName) {
        this.attachmentName = attachmentName;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public String getAttachmentUrl() {
        return attachmentUrl;
    }

    public void setAttachmentUrl(String attachmentUrl) {
        this.attachmentUrl = attachmentUrl;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getUploaderCode() {
        return uploaderCode;
    }

    public void setUploaderCode(String uploaderCode) {
        this.uploaderCode = uploaderCode;
    }

    public String getUploaderName() {
        return uploaderName;
    }

    public void setUploaderName(String uploaderName) {
        this.uploaderName = uploaderName;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }


    public String getPdfUrl() {
        return pdfUrl;
    }

    public void setPdfUrl(String pdfUrl) {
        this.pdfUrl = pdfUrl;
    }

    public String getAttModel() {
        return attModel;
    }

    public void setAttModel(String attModel) {
        this.attModel = attModel;
    }

    @Override
    public String toString() {
        return "AttachmentBean{" +
                "id='" + id + '\'' +
                ", attachmentName='" + attachmentName + '\'' +
                ", extension='" + extension + '\'' +
                ", attachmentUrl='" + attachmentUrl + '\'' +
                ", pdfUrl='" + pdfUrl + '\'' +
                ", businessId='" + businessId + '\'' +
                ", uploaderCode='" + uploaderCode + '\'' +
                ", uploaderName='" + uploaderName + '\'' +
                ", uploadTime=" + uploadTime +
                ", file=" + file +
                ", attModel='" + attModel + '\'' +
                '}';
    }
}